<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping
  xmlns="urn:nhibernate-mapping-2.2" assembly="FJASPX.Domain" namespace="FJASPX.Domain">
  <class name="Supply" table="T_Supply" lazy="false" >
    <id name="Id" type="Int32" unsaved-value="0" >
      <column name="Id" length="4" sql-type="int" not-null="true" unique="true" />
      <generator class="identity"  />
    </id>
    <property name="Title" type="String">
      <column name="Title" length="500" sql-type="varchar"/>
    </property>
    <property name="Name" type="String">
      <column name="Name" length="50" sql-type="varchar"/>
    </property>
    <property name="Company" type="String">
      <column name="Company" length="500" sql-type="varchar"/>
    </property>
    <property name="Unit" type="String">
      <column name="Unit" length="50" sql-type="varchar"/>
    </property>
    <property name="Address" type="String">
      <column name="Address" length="100" sql-type="varchar"/>
    </property>
    <property name="Phone" type="String">
      <column name="Phone" length="50" sql-type="varchar"/>
    </property>
    <property name="EnterpriseName" type="String">
      <column name="EnterpriseName" length="50" sql-type="varchar"/>
    </property>
    <property name="Description" type="String">
      <column name="Description" length="2000" sql-type="varchar"/>
    </property>
    <property name="Model" type="String">
      <column name="Model" length="50" sql-type="varchar"/>
    </property>
    <property name="UserName" type="String">
      <column name="UserName" length="50" sql-type="varchar"/>
    </property>

    <property name="CategoryId" type="Int32">
      <column name="CategoryId" length="4" sql-type="int" />
    </property>
    <property name="TradeId" type="Int32">
      <column name="TradeId" length="4" sql-type="int" />
    </property>
    <property name="BrandId" type="Int32">
      <column name="BrandId" length="4" sql-type="int" />
    </property>
    <property name="State" type="Int32">
      <column name="State" length="4" sql-type="int" />
    </property>
    <property name="MinNumber" type="Int32">
      <column name="MinNumber" length="4" sql-type="int" />
    </property>
    <property name="MaxNumber" type="Int32">
      <column name="MaxNumber" length="4" sql-type="int" />
    </property>
    <property name="Source" type="Int32">
      <column name="Source" length="4" sql-type="int" />
    </property>
    <property name="EnterpriseId" type="Int32">
      <column name="EnterpriseId" length="4" sql-type="int" />
    </property>
    <property name="UserId" type="Int32">
      <column name="UserId" length="4" sql-type="int" />
    </property>
    <property name="BrandName" type="String">
      <column name="BrandName" length="100" sql-type="varchar" />
    </property>
    <property name="TimeStamp" type="DateTime">
      <column name="CreateTime" length="10" sql-type="datetime" />
    </property>
    <property name="Creator" type="String">
      <column name="Creator" length="50" sql-type="varchar" />
    </property>
  </class>
</hibernate-mapping>

